package com.advertisementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@TableName("sys_alert")
public class SysAlert implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 告警类型
     */
    private Integer type;

    /**
     * 告警级别
     */
    private Integer level;

    /**
     * 告警消息
     */
    private String message;

    /**
     * 关联的监控指标ID
     */
    private Long metricsId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
